package com.zhou.common.mybatis.template.shiro.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zhou.common.lib.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author zxf
 * @since 2023-02-27
 */
@Getter
@Setter
@TableName("sys_dept")
@ApiModel(value = "SysDept对象", description = "部门表")
public class SysDept extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "父部门id", position = 2)
    private Long parentId;

    @ApiModelProperty(value = "祖级列表", position = 3)
    private String ancestors;

    @ApiModelProperty(value = "部门名称", position = 4)
    private String deptName;

    @ApiModelProperty(value = "显示顺序", position = 5)
    private Integer orderNum;

    @ApiModelProperty(value = "负责人", position = 6)
    private String leader;

    @ApiModelProperty(value = "联系电话", position = 7)
    private String phone;

    @ApiModelProperty(value = "邮箱", position = 8)
    private String email;

    @ApiModelProperty(value = "部门状态（0正常 1停用）", position = 9)
    private String status;

    @ApiModelProperty(value = "创建者", position = 10)
    private String createBy;

    @ApiModelProperty(value = "创建时间", position = 11)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者", position = 12)
    private String updateBy;

    @ApiModelProperty(value = "更新时间", position = 13)
    private LocalDateTime updateTime;


}
